//
//  PublicUtil.swift
//  firstProject
//
//  Created by 张彦辉 on 2017/5/3.
//  Copyright © 2017年 张彦辉. All rights reserved.
//

import Foundation
import UIKit

struct PublicUtil {
    static func alert(obj: UIViewController,title: String,msg: String){
        let alert = UIAlertController(title: title, message: msg, preferredStyle: .alert)
        let action1 = UIAlertAction(title: "关闭", style: .cancel)
        alert.addAction(action1)
        obj.present(alert, animated: true)
    }
}
